package org.cjprods.icerupt;

import java.util.HashMap;

public class key_map
{
	HashMap<String, Boolean> key_down = new HashMap<String, Boolean>();
	
	public void set(int k, Boolean d)
	{
		set(new String(Character.toChars(k)), d);
	}
	
	public void set(String k, Boolean d)
	{	
		key_down.put(k.toLowerCase(), d);
	}
	
	public Boolean get(String k)
	{
		return key_down.getOrDefault(k, false);
	}
}
